#!/bin/bash

docker network create --driver=bridge --subnet=172.18.1.0/24 --gateway 172.18.1.1    houxin-net

 docker run -e TZ="Asia/Shanghai" --privileged -itd -h houxin-mysql.com \
 --name houxin-mysql -p 8306:3306   \
 -v /opt/module/houxin/houxin-mysql/conf/my.cnf:/etc/mysql/my.cnf  \
 -v /opt/module/houxin/houxin-mysql/logs:/var/log/mysql \
 -v /opt/module/houxin/houxin-mysql/data:/var/lib/mysql \
 -e MYSQL_ROOT_PASSWORD=yO8xUIUUjiZejkEO  \
 --network=houxin-net  --ip 192.168.1.5  mysql:5.7


 docker run -e TZ="Asia/Shanghai" --privileged -itd -h houxin-redis.com  \
 --name houxin-redis -p 8379:6379  --network=houxin-net  --ip 192.168.1.6  redis:5.0

